<?php

namespace app\queue\redis;

use app\services\ChatService;
use app\services\MusicService;
use app\services\UserLevelService;
use app\services\UserService;
use plugin\admin\app\model\ExchangeApply;
use plugin\admin\app\model\UserChatMessage;
use Webman\RedisQueue\Consumer;

class Image2Pdf implements Consumer
{
    public $queue = 'generate-pdf';

    public $connection = 'default';

    public function consume($data)
    {
        MusicService::covertImagesToPDF($data['id'], $data['images']);
    }
}